package com.bocai.service;

import com.bocai.bean.SysUserInfo;
import com.bocai.bean.TUserCode;
import com.bocai.bean.TUserInfo;
import com.bocai.utils.ResponseData;
import org.apache.http.protocol.RequestDate;

/**
 * Created by tu_pei on 2018/4/9.
 */
public interface IUserService {

    int deleteByPrimaryKey(Integer userId);

    int insertSelective(TUserInfo record);

    TUserInfo selectByPrimaryKey(Integer userId);

    TUserInfo selectUserInfo(String phone);

    int updateByPrimaryKeySelective(TUserInfo record);

    int updateByPrimaryKey(TUserInfo userInfo);

    int updatePasswordByPhone(TUserInfo userInfo);

    SysUserInfo selectSysUserInfo(String accountNumber);

    ResponseData selectUserInfoAll(Integer accountNumberId, String phone, ResponseData data);

    ResponseData updateUserInfo(Integer userId, Integer userStatus, Integer accountNumberId, ResponseData data);

    ResponseData updatePassword(Integer userId, ResponseData responseData);

    TUserCode insertCode(TUserCode tUserCode);

    TUserCode selectUserCode(String userPhone);
}
